const path = require("path")
const log4js = require("log4js")

log4js.configure(
  path.resolve(__dirname, `../config/${process.env.NODE_ENV}/log4js.json`)
)

module.exports = category => {
  return log4js.getLogger(category || "app")
}